package com.anmoyi.model.dao;

import com.anmoyi.model.po.Usertemper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface UsertemperMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Usertemper record);

    int insertSelective(Usertemper record);

    Usertemper selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Usertemper record);

    int updateByPrimaryKey(Usertemper record);

    List<Usertemper> selectByuserId(@Param("userId") Integer userId, @Param("createTime")String createTime);
    Usertemper selectlastByuserId(Integer id);

    void bindtemper(@Param("userId")Integer userId, @Param("deviceid")String deviceid);

    int selectbind(@Param("deviceid")String deviceid, @Param("userId")Integer userId);

    void devicebinduser(@Param("deviceid")String deviceid, @Param("userId")Integer userId);

    List listbindtemper(Integer userId);

    List listdevicebinduser(String deviceid);
}
